{% load widget_tweaks %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
      <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
      <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>

</head>
<body>
<form method="post" novalidate>
    {% csrf_token %}
    {% for field in form %}
        <div class="form-group">
            {{ field.label_tag }}
            {% if form.is_bound %}
                {% if field.errors %}
                    {% render_field field class="form-control is-invalid" %}
                    {% for error in field.errors %}
                        <div class="invalid-feedback"> {{ error }} </div>
                    {% endfor %}
                {% else %}
                    {% render_field field class="form-control is-valid" % }
                {% endif %}
            {% else %}
                {% render_field field class="form-control" %}
            {% endif %}
            {% if field.help_text %}
                <small class="form-text text-muted"> {{ field.help_text }} </small>
            {% endif %}
        </div>
    {% endfor %}
    <button type="submit" class="btn btn-success">Post</button >
</form>
</body>
</html>